package com.study.bigwork.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="user")
public class User {
	private Integer id;//用户id
	private String nickname;//用户昵称
	private String phoneNumber;//手机号码
	private String password;//密码
	private String image;//头像
	private String qqNumber;//QQ号码
	private String weChatNumber;//微信号码
	private String grade;//年级
	private String sex;//性别
	private String chat_id;//聊天id
	private String chat_token;
	private int clapping_money;
	
	@Id
	@GeneratedValue(generator="increment_generator")
	@GenericGenerator(name="increment_generator",strategy="increment")
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name="clapping_money")
	public int getClapping_money() {
		return clapping_money;
	}
	public void setClapping_money(int clappping_money) {
		this.clapping_money = clappping_money;
	}
	@Column(name="nickname")
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	@Column(name="phoneNumber")
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	@Column(name="password")
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	@Column(name="image")
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	@Column(name="qqNumber")
	public String getQqNumber() {
		return qqNumber;
	}
	public void setQqNumber(String qqNumber) {
		this.qqNumber = qqNumber;
	}
	@Column(name="weChatNumber")
	public String getWeChatNumber() {
		return weChatNumber;
	}
	public void setWeChatNumber(String weChatNumber) {
		this.weChatNumber = weChatNumber;
	}
	@Column(name="grade")
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
	@Column(name="sex")
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	@Column(name="chat_id")
	public String getChat_id() {
		return chat_id;
	}
	public void setChat_id(String chat_id) {
		this.chat_id = chat_id;
	}
	@Column(name="chat_token")
	public String getChat_token() {
		return chat_token;
	}
	public void setChat_token(String chat_token) {
		this.chat_token = chat_token;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", nickname=" + nickname + ", phoneNumber=" + phoneNumber + ", password=" + password
				+ ", image=" + image + ", qqNumber=" + qqNumber + ", weChatNumber=" + weChatNumber + ", grade=" + grade
				+ ", sex=" + sex + ", chat_id=" + chat_id + ", chat_token=" + chat_token + "]";
	}
	
}
